#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
int main()
{
	int a[] = { 12,23,52,5,62,2,73,27,23};
	HP ph;
	HPInit(&ph);

	for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	{
		HPPush(&ph, a[i]);
	}

	/*printf("%d\n",HPTop(&php)); 
	HPPop(&php);
	printf("%d\n", HPTop(&php));*/

	while (!HPEmpty(&ph))
	{
		printf("%d\n",HPTop(&ph));
		HPPop(&ph);
	}
	HPDestroy(&ph);

	return 0;
}